﻿using System;

namespace SW.Lite.Model.Master
{
    [Serializable]
    public class AdminModel : IModel
    {
        /// <summary>
        /// </summary>
        public AdminModel()
        {
        }

        /// <summary>
        /// </summary>
        /// <param name="id">ID</param>
        /// <param name="userName">用户名</param>
        /// <param name="nickName">昵称</param>
        /// <param name="password">密码</param>
        /// <param name="passwordSalt">盐度</param>
        /// <param name="face">头像</param>
        /// <param name="loginCount">登录次数</param>
        /// <param name="lastLoginTime">上次登录时间</param>
        /// <param name="lastLoginIP">上次登录IP地址</param>
        public AdminModel(int id, string userName, string nickName, string password, string passwordSalt, string face,
            int loginCount, DateTime lastLoginTime, string lastLoginIP)
        {
            Id = id;
            UserName = userName;
            NickName = nickName;
            Password = password;
            PasswordSalt = passwordSalt;
            Face = face;
            LoginCount = loginCount;
            LastLoginTime = lastLoginTime;
            LastLoginIP = lastLoginIP;
        }

        #region 属性

        /// <summary>
        ///     ID
        /// </summary>
        public int Id { get; set; }


        /// <summary>
        ///     用户名
        /// </summary>
        public string UserName { get; set; }


        /// <summary>
        ///     昵称
        /// </summary>
        public string NickName { get; set; }


        /// <summary>
        ///     密码
        /// </summary>
        public string Password { get; set; }


        /// <summary>
        ///     盐度
        /// </summary>
        public string PasswordSalt { get; set; }


        /// <summary>
        ///     头像
        /// </summary>
        public string Face { get; set; }


        /// <summary>
        ///     登录次数
        /// </summary>
        public int LoginCount { get; set; }


        /// <summary>
        ///     上次登录时间
        /// </summary>
        public DateTime LastLoginTime { get; set; }


        /// <summary>
        ///     上次登录IP地址
        /// </summary>
        public string LastLoginIP { get; set; }

        #endregion
    }
}